package com._51doit.day01.xingge例子

object TupleDemo {

  def main(args: Array[String]): Unit = {

    val tp: (Double, Int, String) = (1.0, 5, "spark");

    val tp1: Tuple3[Double, Int, String] = new Tuple3[Double, Int, String](1.0, 5, "spark");

    tp1._1
    //在scala中，(1.0, 5, "spark") 等价于 new Tuple3[Double, Int, String](1.0, 5, "spark");
  }

}
